﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using F_MODEL;
using F_BLL;
using Pager;

namespace MvcApplication1.Controllers
{
    public class SendAddresseesController : ApiController
    {
        Sendandaddresseebll bll = new Sendandaddresseebll();
        [HttpGet]
        public Pager.Plist<Waybill> getSend(string origins, string waybillids, int index, int size)
        {
            Pager.Plist<Waybill> list = bll.getSendlist(origins, waybillids, index, size);
            return list;
        }
        [HttpGet]
        public Pager.Plist<Waybill> getAddresseelst( int index, int size,string destinations, string waybillids)
        {
            Pager.Plist<Waybill> list = bll.getAddresseelist(destinations, waybillids, index, size);
            return list;
        }
    }
}
